﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/news_management.Master" AutoEventWireup="true"
    CodeBehind="news_manager.aspx.cs" Inherits="pcsse.MasterPages.WebForm5" Title="新闻管理"
    EnableEventValidation="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="hoder_maincontent" runat="server">
<div class="p_title">
    新闻管理
</div>
    <div>
        <div>
            <asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="78px">
            </asp:DropDownList>
            <asp:Button ID="Button3" runat="server" OnClick="Button3_Click" Text="过滤" />
        </div>
        <div>
            <asp:LinkButton ID="LBPrev" runat="server" OnClick="LBPrev_Click">前一页</asp:LinkButton>
            <asp:LinkButton ID="LBNext" runat="server" OnClick="LBNext_Click">后一页</asp:LinkButton>
            <asp:Label ID="LbPage" runat="server" Text="Label"></asp:Label>
            <asp:Label ID="LbPageCount" runat="server" Text="Label"></asp:Label>
        </div>
    </div>
    <div>
        <asp:DataList ID="DataList1" runat="server" DataKeyField="NEWS_ID" OnItemCommand="BtnCommand">
            <HeaderTemplate>
                <tr>
                    <td>
                        <asp:Label ID="Label1" runat="server" Text="分类"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="Label2" runat="server" Text="标题"></asp:Label>
                    </td>
<%--                    <td>
                        <asp:Label ID="Label3" runat="server" Text="发表人"></asp:Label>
                    </td>--%>
                    <td>
                        <asp:Label ID="Label4" runat="server" Text="时间"></asp:Label>
                    </td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Label ID="LinkButton4" runat="server"><%# Eval("CATEGORY_TITLE") %></asp:Label>
                    </td>
                    <td>
                        <asp:LinkButton ID="LinkButton2" runat="server" PostBackUrl='<%#"news_editor.aspx?id="+Eval("NEWS_ID")+"&mode=1"%>'><%# Eval("TITLE") %></asp:LinkButton>
                    </td>
<%--                    <td>
                        <asp:Label ID="LinkButton3" runat="server">LinkButton</asp:Label>
                    </td>--%>
                    <td>
                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("DATE") %>'></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="Button2" runat="server" CommandName="BtnDel" Text="删除" />
                    </td>
                </tr>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div>
        <asp:Button ID="BtnSave" runat="server" Text="保存" OnClick="BtnSave_Click" />
        <asp:Button ID="BtnCancel" runat="server" Text="放弃" OnClick="BtnCancel_Click" />
    </div>
</asp:Content>
